Introduction

Previously, you got a refresher on how to set up a SwiftUI project. In this exercise, you will put those skills into practice by creating a brand new SwiftUI project using XCode.

Scenario

You have been tasked with creating a Little Lemon restaurant mobile application for iOS devices from scratch using SwiftUI. Let’s go through the steps.

Instructions

Before you begin, make sure you have the latest version of XCode installed. You can find this information on the XCode page in the Mac App Store .

You’ll use XCode to build all code contained within this exercise and the exercises hereafter.

Step 1: Create an Xcode project

  1. Open up XCode. Select File > New > Project , and make sure the iOS tab is selected. Then choose App under the Application section and select Next .

  2. Name your project Little Lemon and leave the default value for the team for now.

  3. Make sure your organization identifier is set up to a reverse domain name

  4. Select SwiftUI under the Interface option and Swift under the Language option

  5. Leave the Code data and UI tests checkboxes unchecked.

  6. Click Next to proceed

Step 2: Create a project folder

Choose a location for the project folder to be created in and press Create .

Conclusion

By completing this exercise, you revisited the steps to create a new SwiftUI application project in XCode and save it in your preferred location.